home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.LayoutManager;
- import java.awt.Panel;
- import java.net.MalformedURLException;
- import java.net.URL;
- import symantec.itools.lang.Context;
- import symantec.itools.multimedia.Animator;
- import symantec.itools.net.RelativeURL;
-
- public class Plane extends Applet {
- Animator animatorPlane;
-
- public void init() {
- super.init();
- Context.setDocumentBase(((Applet)this).getDocumentBase());
- ((Container)this).setLayout((LayoutManager)null);
- ((Panel)this).addNotify();
- ((Applet)this).resize(520, 80);
- ((Component)this).setFont(new Font("Dialog", 1, 12));
- ((Component)this).setForeground(new Color(0));
- ((Component)this).setBackground(new Color(16777215));
- this.animatorPlane = new Animator();
- this.animatorPlane.reshape(200, 8, 128, 71);
- ((Container)this).add(this.animatorPlane);
- this.animatorPlane.setDelay(250);
- this.animatorPlane.setNumLoops(1);
- this.animatorPlane.setRepeatMode(true);
-
- try {
- URL[] tempURL = new URL[15];
- tempURL[0] = RelativeURL.getURL("Images/plane01.gif");
- tempURL[1] = RelativeURL.getURL("Images/plane02.gif");
- tempURL[2] = RelativeURL.getURL("Images/plane03.gif");
- tempURL[3] = RelativeURL.getURL("Images/plane04.gif");
- tempURL[4] = RelativeURL.getURL("mages/plane05.gif");
- tempURL[5] = RelativeURL.getURL("Images/plane06.gif");
- tempURL[6] = RelativeURL.getURL("Images/plane07.gif");
- tempURL[7] = RelativeURL.getURL("Images/plane08.gif");
- tempURL[8] = RelativeURL.getURL("Images/plane09.gif");
- tempURL[9] = RelativeURL.getURL("Images/plane10.gif");
- tempURL[10] = RelativeURL.getURL("Images/plane11.gif");
- tempURL[11] = RelativeURL.getURL("Images/plane12.gif");
- tempURL[12] = RelativeURL.getURL("Images/plane13.gif");
- tempURL[13] = RelativeURL.getURL("Images/plane14.gif");
- tempURL[14] = RelativeURL.getURL("Images/plane15.gif");
- this.animatorPlane.setImageList(tempURL);
- } catch (MalformedURLException var2) {
- }
-
- this.animatorPlane.setClearFrame(false);
- this.animatorPlane.setPreviewMode(true);
- }
-
- public boolean handleEvent(Event event) {
- return super.handleEvent(event);
- }
- }
-